﻿namespace Daemon.Data.Substructure.Framework.Extension
{
	public static class BoolExtension
	{
		public static string ToSqlString(this bool? attribute)
		{
			if (!attribute.HasValue)
			{
				return "NULL";
			}

			return attribute.Value ? "1" : "0";
		}
	}
}
